From: Lars Ingebrigtsen Date: Mon, 17 Jun 2019 10:19:44 +0000 (+0200) Subject: Suppress warning about out-of-tree Java class in cedet X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~19^2~2837 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=5e63ea1ff6d65832504373a9bb621e47815b0874;p=emacs.git Suppress warning about out-of-tree Java class in cedet * lisp/cedet/ede/config.el (ede-java-classpath): Hack to suppress a compilation warning in glue code to out-of-tree code. --- diff --git a/lisp/cedet/ede/config.el b/lisp/cedet/ede/config.el index f4fc1c2832b..eb46be7a693 100644 --- a/lisp/cedet/ede/config.el +++ b/lisp/cedet/ede/config.el @@ -408,7 +408,11 @@ java class path.") (cl-defmethod ede-java-classpath ((proj ede-project-with-config-java)) "Return the classpath for this project." - (oref (ede-config-get-configuration proj) classpath)) + ;; The `classpath' slot only exists in the Java parts of cedet, and + ;; those have not been merged into Emacs. Suppress the warning + ;; about the unknown slot by using `intern'. + (slot-value (ede-config-get-configuration proj) + (intern "classpath" obarray))) ;; Local variables: ;; generated-autoload-file: "loaddefs.el"